Accessing Java EE Scope Objects
From Documentation
Executions
getCurrent
Retrieves the current execution which contains HTTP request/response.
get HttpServletRequest
HttpServletRequest req = (HttpServletRequest)Executions.getCurrent().getNativeRequest()
Sessions
Get Current Session
Retrieves the current ZK-wrapped session.
Get HttpSession
HttpSession nativeSession = (HttpSession) Sessions.getCurrent().getNativeSession();